package com.example.demo.service;


import com.example.demo.model.form.FileInfoForm;
import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;
import java.util.List;

public interface SysAttachService {

    /**
     * 上传文件
     *
     * @param file 表单文件对象
     * @return 文件信息
     */
    FileInfoForm uploadFile(MultipartFile file);

    /**
     * 删除文件
     *
     * @param attachGuid 文件标识
     * @return 是否删除成功
     */
    boolean deleteFile(String attachGuid);

    InputStream downloadFile(String attachGuid);

    void updateFileClientinfo(List<String> attachGuidList, String clientGuid);

    void updateFileClientinfo(List<String> attachGuidList, String clientGuid,String clientTag);
}
